import request from "@/utils/request";

// 分页获取专利列表
export function getPatentList(query) {
  return request({
    url: "/achievement/patent/page",
    method: "get",
    params: query,
  });
}

// 添加专利
export function getpatentadd(data) {
  return request({
    url: "​/achievement​/patent​/add",
    method: "post",
    data: data,
  });
}
// 修改专利
export function getPatentupdate(data) {
  return request({
    url: "/achievement/patent/update",
    method: "post",
    data: data,
  });
}

// 删除专利
export function patentDel(data) {
  return request({
    url: "/achievement/patent/del",
    method: "delete",
    data: data,
  });
}

// 获取专利详情
export function getpatentInfo(id) {
  return request({
    url: "/achievement/patent/" + id,
    method: "get",
  });
}

// 分页获取新品种列表
export function getbreedList(query) {
  return request({
    url: "/achievement/breed/list",
    method: "get",
    params: query,
  });
}

// 添加新品种
export function getbreedAdd(data) {
  return request({
    url: "​/achievement​/breed/add",
    method: "post",
    data: data,
  });
}
// 修改新品种
export function getbreedUpdate(data) {
  return request({
    url: "/achievement/breed/update",
    method: "post",
    data: data,
  });
}

// 删除新品种
export function breedDel(ids) {
  return request({
    url: "/achievement/breed/del/" + ids,
    method: "delete",
  });
}

// 获取新品种详情
export function getbreedInfo(id) {
  return request({
    url: "/achievement/breed/" + id,
    method: "get",
  });
}

// 分页获取标准列表
export function getstandardList(query) {
  return request({
    url: "/achievement/standard/list",
    method: "get",
    params: query,
  });
}

// 添加标准
export function getstandardAdd(data) {
  return request({
    url: "​/achievement​/standard/add",
    method: "post",
    data: data,
  });
}
// 修改标准
export function getstandardUpdate(data) {
  return request({
    url: "/achievement/standard/update",
    method: "post",
    data: data,
  });
}

// 删除标准
export function standardDel(ids) {
  return request({
    url: "/achievement/standard/del/" + ids,
    method: "delete",
  });
}

// 获取标准详情
export function getstandardInfo(id) {
  return request({
    url: "/achievement/standard/" + id,
    method: "get",
  });
}

// 分页获取药证列表
export function getmedicineList(query) {
  return request({
    url: "/achievement/medicine/list",
    method: "get",
    params: query,
  });
}

// 添加药证
export function getmedicineAdd(data) {
  return request({
    url: "​/achievement​/medicine/add",
    method: "post",
    data: data,
  });
}
// 修改药证
export function getmedicineUpdate(data) {
  return request({
    url: "/achievement/medicine/update",
    method: "post",
    data: data,
  });
}

// 删除药证
export function medicineDel(ids) {
  return request({
    url: "/achievement/medicine/del/" + ids,
    method: "delete",
  });
}

// 获取药证详情
export function getmedicineInfo(id) {
  return request({
    url: "/achievement/medicine/" + id,
    method: "get",
  });
}

// 分页获取著作权列表
export function getcopyRightList(query) {
  return request({
    url: "/achievement/copyRight/list",
    method: "get",
    params: query,
  });
}

// 添加著作权
export function getcopyRightAdd(data) {
  return request({
    url: "​/achievement​/copyRight/add",
    method: "post",
    data: data,
  });
}
// 修改著作权
export function getcopyRightUpdate(data) {
  return request({
    url: "/achievement/copyRight/update",
    method: "post",
    data: data,
  });
}

// 删除著作权
export function copyRightDel(ids) {
  return request({
    url: "/achievement/copyRight/del/" + ids,
    method: "delete",
  });
}

// 获取著作权详情
export function getcopyRightInfo(id) {
  return request({
    url: "/achievement/copyRight/" + id,
    method: "get",
  });
}

// 分页获取科研成果转化列表
export function getkycgzhList(query) {
  return request({
    url: "/achievement/transform/list",
    method: "get",
    params: query,
  });
}

// 添加科研成果转化
export function getkycgzhAdd(data) {
  return request({
    url: "/achievement/transform/add",
    method: "post",
    data: data,
  });
}
// 修改科研成果转化
export function getkycgzhUpdate(data) {
  return request({
    url: "/achievement/transform/update",
    method: "post",
    data: data,
  });
}

// 删除科研成果转化
export function kycgzhDel(ids) {
  return request({
    url: "/achievement/transform/del/" + ids,
    method: "delete",
  });
}

// 获取著作权详情
export function getkycgzhInfo(id) {
  return request({
    url: "/achievement/transform/" + id,
    method: "get",
  });
}

// 获取专利管理状态列表
export function getpatentListStatistics(query) {
  return request({
    url: "/achievement/patent/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取著作权状态列表
export function getcopyRightListStatistics(query) {
  return request({
    url: "/achievement/copyRight/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取标准状态列表
export function getstandardListStatistics(query) {
  return request({
    url: "/achievement/standard/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取药证状态列表
export function getmedicineListStatistics(query) {
  return request({
    url: "/achievement/medicine/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取新品种状态列表
export function getbreedListStatistics(query) {
  return request({
    url: "/achievement/breed/list-statistics",
    method: "get",
    params: query,
  });
}
